//
//  LSZNewRecordTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/21.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZNewRecordTableViewCell.h"

@implementation LSZNewRecordTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelNumber = [[UILabel alloc]init];
        self.labelNumber.textAlignment = NSTextAlignmentCenter;
        self.labelNumber.textColor = lightColor;
        [self addSubview:self.labelNumber];

        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.textColor = RGBColor(65, 131, 255);
        [self addSubview:self.labelTitle];

        self.labelTime = [[UILabel alloc]init];
        self.labelTime.textColor = lightColor;
        [self addSubview:self.labelTime];

        if (ScreenWidth == 320) {
            //5
            self.labelNumber.font = FONT_(14.5);
            self.labelTitle.font = FONT_(13.5);
            self.labelTime.font = FONT_(12.5);
            self.labelNumber.frame = CGRectMake(0, 0, 40, 55);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, 10, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 16);
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, CGRectGetMaxY(self.labelTitle.frame)+5, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 14);

        }else if(ScreenWidth == 375){
            // 6 7
            self.labelNumber.font = FONT_(15);
            self.labelTitle.font = FONT_(14);
            self.labelTime.font = FONT_(13);
            self.labelNumber.frame = CGRectMake(0, 0, 40, 59);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, 10, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 18);
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, CGRectGetMaxY(self.labelTitle.frame)+5, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 16);
        }else {
            //plus
            self.labelNumber.font = FONT_(15.5);
            self.labelTitle.font = FONT_(14.5);
            self.labelTime.font = FONT_(13.5);
            self.labelNumber.frame = CGRectMake(0, 0, 40, 63);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, 10, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 20);
            self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame)+1, CGRectGetMaxY(self.labelTitle.frame)+5, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 18);
        }

    }
    return self;
}

@end
